package com.leeon.string.example;

import static net.mindview.util.Print.print;

public class Example7 {

	public static String test1 = "Wcccc , adfafa c...afaf.";
	public static String test2 = "Wcccc , adfafa c...afaf!";

	public static void main(String[] args){
		print(test1.matches("^[A-Z].*[\\.]$"));
		print(test2.matches("^[A-Z].*[?]$"));
	}
	
}
